< previous page page_489 next page >

Page 489
9f8044bafea36a1f728739c0bb58ef4c.gif
10. Briefly explain containment.
9f8044bafea36a1f728739c0bb58ef4c.gif
Containment is similar to composition, except that the containing object is not responsible for the life of the contained object. Thus, an object can create another object for its exclusive use but can't pass the object to another for the other's use. This is the case with collections in which a containing object creates an object, populates it with data from a graphical user interface, and then passes that object to a collection. A collection object contains objects.
Day 6
9f8044bafea36a1f728739c0bb58ef4c.gif
1. What is another name for a general code module?
9f8044bafea36a1f728739c0bb58ef4c.gif
Class utility.
9f8044bafea36a1f728739c0bb58ef4c.gif
2. What is the value of the Make index tab in the Project Properties dialog box?
9f8044bafea36a1f728739c0bb58ef4c.gif
It's valuable for version management and protection of copyrights if you plan to sell your component commercially.
9f8044bafea36a1f728739c0bb58ef4c.gif
3. What is required when testing a component?
9f8044bafea36a1f728739c0bb58ef4c.gif
Testing any component requires a plan with clear goals.
9f8044bafea36a1f728739c0bb58ef4c.gif
4. What is a master test plan?
9f8044bafea36a1f728739c0bb58ef4c.gif
In its simplest form, a master test plan summarizes the goal of the testing effort, the resources required to test the software, and the actual test cases to be examined.
9f8044bafea36a1f728739c0bb58ef4c.gif
5. What is the importance of a test script?
9f8044bafea36a1f728739c0bb58ef4c.gif
A well-written test script is the realization of a test case, given a set of conditions and assumptions.
Day 7
9f8044bafea36a1f728739c0bb58ef4c.gif
1. What advantages and disadvantages must you consider when deciding whether to acquire third-party controls?
9f8044bafea36a1f728739c0bb58ef4c.gif
The advantages are decreased development time (and therefore reduced development costs) and reuse over many projects. Buying a third-party control is like buying canned labor: the third-party vendor has put its labor force's time and energy into that control so that you don't have to put your time and energy into reproducing the same code. What's more, you can reuse that canned time and energy over many projects, thus receiving increasing returns on investment over time.
9f8044bafea36a1f728739c0bb58ef4c.gif
The disadvantages are that many controls have been poorly documented, rendering the controls almost useless. Other controls are awkward or require too many

 
< previous page page_489 next page >

If you like this book, buy it!